package com.study.config.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：Administrator
 * @Date：2022/7/19/0019 0:06
 * @Versiion：1.0
 */
@RestController
@RefreshScope
public class TestController {

    @Value("${config.info}")
    private String configInfo;

    @GetMapping("/getConfig")
    public String getConfig(){
        return configInfo;
    }

}
